<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../node_modules/art-template/lib/template-web.js"></script>
<script type="text/template" id="tp1">
    name:{{name}}
    age:{{age}}
</script>
<script>
    let ret= template("tp1",{
        name:'黄鑫',
        age:123,
    })
    console.log(ret);
</script>
<body>

</body>
</html>